Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Generate a JWT access token through a Custom Global Integration and provide it with each request in the Authorization header prefixed with "Bearer" and then a single space.

Path Parameters

id
integer<int32>
required

The id of the referenced Warehouse.

rule_set_id
integer<int32>
required

The id of the owning SlottingRuleSet.

Query Parameters

fields
enum<string>[]

Specify fields of the SlottingRule object to include in the response.

Available options:
all,
rule_set,
name,
relation,
strength,
priority,
merchant_ids,
merchants,
product_profile_ids,
product_profiles,
product_profile_match_mode,
handling_class_ids,
handling_classes,
location_profile,
subject_readable,
location_match_readable,
has_conflicts,
conflict_detail,
created_at,
updated_at
fields:rule_set
enum<string>[]

Specify fields of the SlottingRuleSet object referenced by each Rule. See the selecting fields page for more information. Specify fields of the SlottingRuleSet object to include in the response.

Available options:
all,
name,
description,
is_active,
rule_count,
has_conflicts,
conflicting_rule_count,
created_at,
updated_at
fields:location_profile
enum<string>[]

Specify fields of the LocationProfile object referenced by each Rule. See the selecting fields page for more information. Specify direct display fields of an included LocationProfile object.

Available options:
name,
description,
status,
member_count,
match_readable,
created_at,
updated_at
fields:merchants
enum<string>[]

Specify direct fields of selected Merchant objects to include under included.Merchant. Add merchants to the root fields parameter to return the relationship. type and id are always returned. Specify direct fields of an included Merchant object.

Available options:
code,
name,
status,
created_at,
updated_at
fields:product_profiles
enum<string>[]

Specify fields of selected ProductProfile objects to include under included.ProductProfile. Add product_profiles to the root fields parameter to return the relationship. type and id are always returned. Specify fields of an included ProductProfile object.

Available options:
basic,
all,
name,
code,
conditions,
conditions_readable,
matched_count,
classification,
created_at,
updated_at
fields:handling_classes
enum<string>[]

Specify direct fields of selected HandlingClass objects to include under included.HandlingClass. Add handling_classes to the root fields parameter to return the relationship. type and id are always returned. Specify direct fields of an included HandlingClass object.

Available options:
name,
code,
sort_order,
conditions,
conditions_readable,
matched_count,
classification,
created_at,
updated_at

Body

application/json

The body of a Slotting Rule create request. The Warehouse and owning Rule Set come from the path. The Location Profile must belong to that Warehouse and have a ready active revision.

name
string
required

User-visible Rule name.

Required string length: 1 - 255
Example:

"Regulated aerosols require Hazmat storage"

relation
enum<string>
required

Hard requirement or advisory preference applied by the Rule.

Available options:
require,
forbid,
prefer,
discourage
Example:

"require"

location_profile_id
integer<int32>
required

Ready Location Profile in the path Warehouse targeted by the Rule.

Required range: x >= 1
Example:

26

strength
enum<string> | null

Required for prefer and discourage. Omit this property for require and forbid; explicitly sending it for a hard Rule is rejected.

Available options:
low,
normal,
high,
critical,
null
Example:

null

merchant_ids
integer<int32>[] | null

Merchant IDs selected by the Rule; null or an empty list means every Merchant.

Maximum array length: 100
Required range: x >= 1
Example:
product_profile_ids
integer<int32>[]

Product Profile IDs selected by the Rule; an empty list leaves this dimension unrestricted.

Maximum array length: 100
Required range: x >= 1
Example:
product_profile_match_mode
enum<string>
default:any

How the selected Product Profiles are matched. none requires at least one ID.

Available options:
any,
all,
none
Example:

"any"

handling_class_ids
integer<int32>[]

Handling Class IDs assigned to the Warehouse; an empty list leaves this dimension unrestricted.

Maximum array length: 100
Required range: x >= 1
Example:

Response

The Slotting Rule was created.

resource
SlottingRule · object

A Rule inside one Warehouse Slotting Rule Set. It selects Products and Merchants, applies a hard or advisory relation, and targets the resolved membership of one ready Location Profile. Conflict fields are the latest durable result of asynchronous Slotting conflict detection.

Example:
included
object

Direct objects included by specifying nested fields. Relationship trees below these editor selections are never expanded. See the selecting fields page.

Example:
meta
object

Additional metadata pertaining to the response.